

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Hello world!</title>
    <!-- zui -->
    <link href="static/css/zui.min.css" rel="stylesheet">
    <link href="static/css/zui-theme.css" rel="stylesheet">
    <link href="static/lib/bootbox/bootbox.min.css" rel="stylesheet">
</head>
<body>
<?php include __DIR__.'/nav.tpl.php'?>
<!-- 在此处编码你的创意 -->
<table class="table table-bordered">
    <tr>

<?php foreach (scandirFiles($dir) as $k => $file) {?>
        <td><a href="?m=<?=self::$module?>&f=<?=substr($file,strlen($dir)+1)?>"><?=substr($file,strlen($dir)+1)?></a></td>
        <?php
            if($k % 2  == 1){
                echo '</tr><tr>' ;
            }
        ?>
<?php } ?>
    </tr>
</table>

<!-- jQuery (ZUI中的Javascript组件依赖于jQuery) -->
<script src="static/js/jquery-1.11.0.min.js"></script>
<!-- ZUI Javascript组件 -->
<script src="static/js/zui.min.js"></script>
<script src="static/lib/bootbox/bootbox.min.js"></script>
</body>
</html>
